﻿@inherits UmbracoTemplatePage

@using System.Text;
@{
    IPublishedContent current = Model.Content;
    StringBuilder breadcrumb = new StringBuilder();
    while (!current.DocumentTypeAlias.Equals("homepage"))
    {
        breadcrumb.Insert(0, string.Format("<li><a href=\"{0}\">{1}</a></li>", current.Url, current.Name));
        current = current.Parent;
    }
    breadcrumb.Insert(0, string.Format("<li><a href=\"{0}\">{1}</a></li>", current.Url, current.Name));
}

<div class="utilities">
    <ul id="breadcrumb">
        @Html.Raw(breadcrumb.ToString())
    </ul>
</div>
